/*----------------------------------------------------------------------
  - File name      : STC8Ax_DELAY.h
  - Author         : Quark Team
  - Update date    : 2020-12-09                   
  -	Copyright      : Gevico Electronic studio   
  - Module comments: Header file of Delay module.
-----------------------------------------------------------------------*/
#ifndef __STC8Ax_DELAY_H_
#define __STC8Ax_DELAY_H_
/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
/*--------------------------------------------------------
| @Description: STC8Ax Options                           |
--------------------------------------------------------*/
#include "STC8Ax_REG.h"   
/*--------------------------------------------------------
| @Description: STC8Ax core                              |
--------------------------------------------------------*/
#include "STC8Ax_CORE.h"
/*-----------------------------------------------------------------------
|                                 DATA                                  |
-----------------------------------------------------------------------*/

/*--------------------------------------------------------
| @Description: delay function define                    |
--------------------------------------------------------*/
/*
 * note: If you want to get a precise delay, 
 * fine tune this macro parameter.
 */
#define DELAY_COUNT 11000U

/*--------------------------------------------------------
| @Description: delay function define                    |
--------------------------------------------------------*/

#define delay_init    Delay_init
#define delay_ms      Delay_ms
#define DELAY_POS     Delay_Pos

/*-----------------------------------------------------------------------
|                             API FUNCTION                              |
-----------------------------------------------------------------------*/

FSCSTATE Delay_init(void);
FSCSTATE Delay_Pos(void); 
void Delay_ms(uint16 nms);

#endif
/*-----------------------------------------------------------------------
|          END OF FLIE        (C) COPYRIGHT Gevico Electronics          | 
-----------------------------------------------------------------------*/

